<script type="text/javascript" src="${base}/scripts/htgl/cghtgl_content.js"></script>

<div id="cghtgl_tabs" class="easyui-tabs" detail="true" data-options="fit:true,border:false">
    <input id= "cghtgl_id" name="cght.id" type="hidden" value="${(cght.id)!''}"/>
    <input id= "cght_bzj" name="cght.bzj.id" type="hidden" value="${(cght.bzj.id)!''}"/>
    <input id= "cght_bzjfs" name="cght.bzjfs" type="hidden" value="${(cght.bzjfs)!''}"/>

    <div title="合同信息查看">
        <div id="-toolbar">
           <#-- <div class="PTools">-->
                <#--<ul class="niu">-->
                 <#--   <li><span class="xuan">选择打印机：</span>
                        <select class="ze" name="" style="">
                            <option>——默认——</option>
                        </select>
                    </li>
                    <li><a class="she" href="javascript:void(0);" onclick="checkIsInstall()">检查插件</a></li>
                    <li><a class="watch" href="javascript:void(0);" onclick="zksqPrintPreview()">打印</a></li>-->
              <#--  </ul>-->
            <#--</div>-->
            <div>
                <object id="LODOP_OB_CGHTGL" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
                    <embed id="LODOP_EM_CGHTGL" type="application/x-print-lodop" width=0 height=0
                           pluginspage="install_lodop32.exe"></embed>
                </object>
                <div id="cghtgl_print_id" class="textcon">
                    <table id="cghtgl_print_table" class="tb" style="width: 100%;font-size:13px;">
                        <tbody>
                        <colgroup>
                            <col width="10%;"/>
                            <col width="27%"/>
                            <col width="15%;"/>
                            <col width="20%"/>
                            <col width="12%;"/>
                            <col width="23%"/>
                        </colgroup>
                        <tbody>
                        <tr>
                            <th>供方:</th>
                            <td><input id="cghtglprint_gf" class="input-tian" readonly="readonly"
                                       value="${(cght.hzf.qc)!}"/></td>
                            <td rowspan="2" colspan="2" style="text-align: center;font-size: 18px">
                                <span id="cghtglprint_mc" style="font-size: 20px;">产品买卖合同</span>
                            </td>
                            <th>合同号码:</th>
                            <td><input id="cghtglprint_htbm" class="input-tian" readonly="readonly"
                                       value="${(cght.htbm)!}"/></td>
                        </tr>
                        <tr>
                            <th>需方:</th>
                            <td><input id="cghtglprint_xf" class="input-tian" readonly="readonly"
                                       value="${(cght.sbgs.jc)!}"/>
                            </td>
                            <th>制单日期:</th>
                            <td><input id="cghtglprint_zdrq" class="input-tian" readonly="readonly"
                                       value="<#if cght??>${(cght.dateCreated?date)!}</#if>"/></td>
                        </tr>



                    </tbody>
                    </table>
                </div>

                <div id="cghtgl_content_id" class="textcon"></div>


                <div id="cghtgl_detail_id" class="textcon">
                    <table class="tb" style="width: 100%;font-size:13px;">
                        <colgroup>
                            <col width="10%;"/>
                            <col width="15%"/>
                            <col width="10%;"/>
                            <col width="15%"/>
                            <col width="10%;"/>
                            <col width="15%"/>
                        </colgroup>
                        <tbody>
           <th style="font-size:16px;font-weight:bold">合同信息：</th>
                        <tr>
                            <th style="font-size: 12px;">采购公司:</th>
                            <td>
                                <input id="cght_lj" class="input-tian" readonly="readonly"
                                       value="${(cght.wlfgs.qc)!}"/>
                            </td>
                            <th>物资计划:</th>
                            <td>
                                <input id="cght_bgjhhz" class="input-tian" readonly="readonly"
                                       value="${(cght.bgjhhz.bm)!}"/>
                            </td>
                            <th>签订日期:</th>
                            <td>
                                <input class="input-tian" readonly="readonly"
                                       value="${(cght.qdrq?date)!}"/>
                            </td>
                        </tr>
                        <tr>
                            <th style="font-size: 12px;">签订地点:</th>
                            <td>
                                <input  class="input-tian" readonly="readonly" value="${(cght.qddd)!}"/>
                            </td>
                            <th style="font-size: 12px;">交货地点:</th>
                            <td>
                                <input  class="input-tian" readonly="readonly" value="${(cght.jhdd)!}"/>
                            </td>
                            <th style="font-size: 12px;">交货方式:</th>
                            <td>
                                <input class="input-tian" readonly="readonly"
                                       value=" ${(cght.jhfs)!}"/>
                            </td>
                        </tr>
                        <tr>
                            <th style="font-size: 12px;">申报公司:</th>
                            <td>
                                <input  class="input-tian" readonly="readonly" value="${(cght.sbgs.jc)!}"/>
                            </td>
                            <th style="font-size: 12px;">申报部门:</th>
                            <td>
                                <input  class="input-tian" readonly="readonly" value="${(cght.sbbm.qc)!}"/>
                            </td>
                            <th style="font-size: 12px;">申报人:</th>
                            <td>
                                <input class="input-tian" readonly="readonly"
                                       value=" ${(cght.sbr.xm)!}"/>
                            </td>
                        </tr>

                        <tr>
                            <th style="font-size: 12px;">税率(%):</th>
                            <td>
                                <input  class="input-tian" readonly="readonly" value="${(cght.sl?string(",##0.0000"))!}"/>
                            </td>
                            <th style="font-size: 12px;">投资付款时间:</th>
                            <td>
                                <input  class="input-tian" readonly="readonly" value="${(cght.fksj?date)!}"/>
                            </td>
                            <th style="font-size: 12px;">预交货时间:</th>
                            <td>
                                <input class="input-tian" readonly="readonly"
                                       value=" ${(cght.jhsj?date)!}"/>
                            </td>
                        </tr>

                      <#--  <tr>
                            <th>价格是否相同：</th>
                            <td colspan="3">
                            <#if cght??&&cght.jgsfxt??>
                                <#if cght.jgsfxt=='1'>
                                    <input class="input-tian" readonly="readonly"
                                           value="相同 （说明：判断采购合同价和实际结算价是否相同）"/>
                                  <#else>
                                      <input class="input-tian" readonly="readonly"
                                             value="不相同 （说明：判断采购合同价和实际结算价是否相同）"/>
                                </#if>
                            </#if>
                            </td>
                        </tr>-->
                        </tbody>

                                                <tbody>
                        <th style="font-size:16px;font-weight:bold">承兑规则：</th>
                        <tr>
                            <th style="font-size: 12px;">免息天数：</th>
                            <td>
                                <input  class="input-tian" readonly="readonly"
                                        value="${(cght.mxts)!}"/>
                            </td>
                            <th>月贴息率(%)：</th>
                            <td>
                                <input  class="input-tian" readonly="readonly"
                                        value="${(cght.txl?string(",##0.0000"))!}"/>
                            </td>
                            <th>现金优惠：</th>
                            <td>
                                <input  class="input-tian" readonly="readonly"
                                        value="${(cght.yhbl?string(",##0.0000"))!}"/>
                            </td>

                        </tr>
                        </tbody>
                        <tbody>
                        <th style="font-size:16px;font-weight:bold">保证金规则：</th>


                        <tr id="bzj_y">
                            <th style="font-size: 12px;">保证金比例(%)：</th>
                            <td>
                                <input  class="input-tian" readonly="readonly"
                                        value="${(bzj.bzjbl?string(",##0.0000"))!}"/>
                            </td>
                            <th>理论总金额：</th>
                            <td>
                                <input  class="input-tian" readonly="readonly"
                                        value="${(bzj.llje?string(",##0.0000"))!}"/>
                            </td>

                            <th>实际总金额：</th>
                            <td>
                                <input  class="input-tian" readonly="readonly"
                                        value="${(bzj.je?string(",##0.0000"))!}"/>
                            </td>
                        </tr>


                        <tr id="bzj_w">

                            <#--<th>保证金方式：</th>-->
                            <#--<td>-->
                            <#--<#if qyjg.bzjfs?? && qyjg.bzjfs==0 >一次性使用<#else>-->
                            <#--<#if qyjg.bzjfs?? && qyjg.bzjfs==1 >按比例使用<#else>无保证金-->
                            <#--</#if></#if>-->
                            <#--</td>-->
                            <#---->
                            <th>余额：</th>
                            <td>
                                <input  class="input-tian" readonly="readonly"
                                        value="${(hthk.je?string(",##0.0000"))!}"/>
                            </td>

                        </tr>
                        </tbody>

                    </table>

                </div>

          <#--     <div> <tbody>  <th style="font-size:16px;font-weight:bold">保证金规则：</th></tbody></div>
                <table id="cght_bzj" class="easyui-datagrid" url="${base}/htgl/cghtgl/cghtgl_bzj?cghtId=${(cght.id)!}"
                       rownumbers="true"  fitColumns="true" showFooter="true">

                    <thead>
                    <tr>
                        <th data-options="field:'htbm',width:80,align: 'center'">采购合同</th>
                        <th data-options="field:'bzjje',width:80,formatter:formatJeForHtml2,align: 'right'">保证金理论金额(元)</th>
                        <th data-options="field:'bzjbl',width:100,formatter:formatSlForHtml,align: 'right'">保证金比例</th>
                        <th data-options="field:'bm',width:80,align: 'center'">收款单</th>

                        <th data-options="field:'skje',width:80,formatter:formatJeForHtml,align: 'right'">收款金额(元)</th>




                    </tr>
                    </thead>
                </table>-->

            </div>
        </div>
    </div>
</div>

